﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="frmListPresentacion.aspx.cs" Inherits="PharmacyWeb.Almacen.frmListPresentacion" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="FeaturedContent" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="MainContent" runat="server"><asp:Panel ID="Panel2" runat="server"><b>.: Liz Vigo:.</b> <br/> <h5>Ingrese Aquí su criterio de Búsqueda</h5></asp:Panel>
    <div class="col-sm-12"></div>
    <div class="panel panel-primary">
    <div class="panel-heading">
        <h3 class="panel-title">Presentaciones</h3>
        </div>
        <div class="panel-body">
            <div class="form-group">
                <label class="control-label">Criterio:</label>
                <asp:TextBox ID="txtCriterio" CssClass="form-control input-sm" runat="server"></asp:TextBox>
                <ajaxToolkit:BalloonPopupExtender runat="server" ExtenderControlID="" BalloonPopupControlID="Panel2" BalloonStyle="Cloud" CustomCssUrl="" DynamicServicePath="" Enabled="True" TargetControlID="txtCriterio" ID="txtCriterio_BalloonPopupExtender"></ajaxToolkit:BalloonPopupExtender>
                <asp:Button ID="btnBuscar" CssClass="btn btn-success btn-sm" Text="Buscar" runat="server"/>
                <a href="frmPresentacion.aspx?accion=nuevo" class="btn btn-default btn-sm">Registrar Presentacion</a>
            </div>
        </div>
        
        <asp:ListView ID="lvPresentacion" 
            ItemType="PharmacyBussinesEntities.Presentacion"
            SelectMethod="GetPresentaciones"
            runat="server">
            <LayoutTemplate>
                <div class="table-responsive">
                    <table class="table table-hover table-responsive table-striped">
                        <thead>
                            <tr>
                                <th>ID</th>
                                <th>Descripcion</th>
                            </tr>
                        </thead>
                        <tbody>
                            <tr id="itemPlaceholder" runat="server"></tr>
                        </tbody>
                    </table>
                </div>
            </LayoutTemplate>
            <ItemTemplate>
                <tr>
                    <td><%# Item.Id %></td>
                    <td><%# Item.Descripcion %></td>
                    <td>
                        <a href="frmPresentacion.aspx?identificador=<%# Item.Id %>">Editar</a>
                        <a href="frmPresentacion.aspx?accion=eliminar&id<%# Item.Id %>"
                            onclick="return  confirm('Desea eliminar: <%# Item.Descripcion %>')">Eliminar</a>
                    </td>
                </tr>
            </ItemTemplate>
        </asp:ListView>
        

    </div>
   
</asp:Content>
